import request from '@/utils/request'
// 官网信息接口

// 购买咨询列表
export function buyConsultList() {
  return request({
    url: '/call-center/api/v1/purchaseConsultation/',
    method: 'get'
  })
}

// 购买咨询新增
export function buyConsultAdd(data) {
  return request({
    url: '/call-center/api/v1/purchaseConsultation',
    method: 'post',
    data: data
  })
}

// 购买咨询详情
export function buyConsultDetail(id) {
  return request({
    url: '/call-center/api/v1/purchaseConsultation/' + id,
    method: 'get'
  })
}

// 购买咨询修改
export function buyConsultUpdate(data) {
  return request({
    url: '/call-center/api/v1/purchaseConsultation',
    method: 'put',
    data: data
  })
}

// 购买咨询删除
export function buyConsultDelete(id) {
  return request({
    url: '/call-center/api/v1/purchaseConsultation/' + id,
    method: 'delete'
  })
}

// 购买咨询删除批量
export function buyConsultDeleteBatch(ids) {
  return request({
    url: '/call-center/api/v1/purchaseConsultation/deleteBatch',
    method: 'delete',
    data: { ids }
  })
}

// 报修列表
export function repairList() {
  return request({
    url: '/call-center/api/v1/repairRecord/',
    method: 'get'
  })
}

// 报修新增
export function repairAdd(data) {
  return request({
    url: '/call-center/api/v1/repairRecord',
    method: 'post',
    data: data
  })
}

// 报修详情
export function repairDetail(id) {
  return request({
    url: '/call-center/api/v1/repairRecord/' + id,
    method: 'get'
  })
}

// 报修修改
export function repairUpdate(data) {
  return request({
    url: '/call-center/api/v1/repairRecord',
    method: 'put',
    data: data
  })
}

// 报修删除
export function repairDelete(id) {
  return request({
    url: '/call-center/api/v1/repairRecord/' + id,
    method: 'delete'
  })
}
// 报修删除批量
export function repairDeleteBatch(ids) {
  return request({
    url: '/call-center/api/v1/repairRecord/deleteBath',
    method: 'delete',
    data: { ids }
  })
}

// 加盟列表
export function joinInfoList() {
  return request({
    url: '/call-center/api/v1/joinInfo/',
    method: 'get'
  })
}

// 加盟新增
export function joinInfoAdd(data) {
  return request({
    url: '/call-center/api/v1/joinInfo',
    method: 'post',
    data: data
  })
}
// 加盟详情
export function joinInfoDetail(id) {
  return request({
    url: '/call-center/api/v1/joinInfo/' + id,
    method: 'get'
  })
}
// 加盟修改
export function joinInfoUpdate(data) {
  return request({
    url: '/call-center/api/v1/joinInfo',
    method: 'put',
    data: data
  })
}
// 加盟删除
export function joinInfoDelete(id) {
  return request({
    url: '/call-center/api/v1/joinInfo/' + id,
    method: 'delete'
  })
}

// 加盟删除批量
export function joinInfoDeleteBatch(ids) {
  return request({
    url: '/call-center/api/v1/joinInfo/deleteBath',
    method: 'delete',
    data: { ids }
  })
}
